<%@page contentType="text/html;charset=utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title></title>
		<link rel="stylesheet" type="text/css" href="../css/style.css" />
		<script type="javascript">
			function validate1(){
				var T = document.getElementById('warning1').value;
				if( T.length >0){
					if(validate2();){
						return true;
					}
				} else {
					return false;
				}
			}
			function validate2(){
				var T = document.getElementById('warning2').value;
				if( T.length >0){
					return true;
				} else {
					return false;
				}
			}
			
		</script>
	</head>

	<body>
		<div id="wrap">
			<div id="top_content">
				<%@include file="header.jsp"%>
				<div id="content">
					<p id="whereami">
						欢迎你:${requestScope.user_detail.realname}
						<a href="#">登出</a>
					</p>
					<h1>
						输入员工信息
					</h1>
					<form action="emp_add" method="post" onsubmit="return validate1();">
						<div align="center">
						</div>
						<table cellpadding="0" cellspacing="0" border="0"
							class="form_table">
							<tr>
								<td valign="middle" align="center">
									姓&nbsp;&nbsp;&nbsp; 名:
								</td>
								<td valign="middle" align="left">
									<input type="text" class="inputgri" name="name" value="" />
								</td>
								<td>
									<a id="warning1"></a>
								</td>
								<td valign="top">
									<br />
								</td>
							</tr>
							<tr>
								<td valign="middle" align="right">
									入职时间:
								</td>
								<td valign="middle" align="left">
									<input type="text" class="inputgri" name="hireDate" value="" />
								</td>
								<td>
									<a id="warning2"></a>
								</td>
								<td valign="top">
									<br />
								</td>
							</tr>
							<tr>
								<td valign="middle" align="right">
									所属部门:
								</td>
								<td valign="middle" align="left">
									<select class="inputgri" name="dept.id">
										<c:forEach items="${requestScope.deptList}" var="dept">
											<option value="${dept.id}">
												${dept.name}
											</option>
										</c:forEach>
									</select>
								</td>
								<td valign="top">
									<br />
								</td>
							</tr>
						</table>
						<p>
							<input type="submit" class="button" value="提交 &raquo;" />
						</p>
					</form>
				</div>
			</div>
			<%@include file="footer.jsp"%>
		</div>
	</body>
</html>
